<?php
/**
 * search.phtml
 *
 * @category    Madoqua
 * @package     Module
 * @subpackage  BlogAdmin
 */

$this->adminNavigation('post', 'search');

?>

<h2>Search posts</h2>
<p>
    You can probably find your posts fastest by just searching for them.
</p>

<?php echo $this->form; ?>

<?php if (!empty($this->query)) : ?>
<div id="post_search_results">
    <?php echo $this->render('/post/search/list.phtml'); ?>
</div>
<?php endif; ?>

<h2>Rebuild Search Index</h2>
<p>In the event that you manage to break your search index, you can rebuild it here.</p>
<?php $this->headScript()->appendFile($this->adminFile('js/application/rebuild-search.js')); ?>
<?php echo $this->rebuildForm; ?>
<h2 class="rebuild" style="display:none;">Rebuilding index... please wait.</h2>
<div id="rebuild-target" style="display:none;"></div>